package com.bolt.support.query.conditions.domain;

/**
 * Created by Administrator on 2019/1/25.
 */
public class Condition {
    private String leftProperty;
    private Class leftClass;
    private MatchType ops;
    private Related related;

    private Object matchValue;

    private String rightProperty;
    private Class rightClass;

    public Condition(String leftProperty, Class leftEntity, MatchType ops, String rightProperty, Class rightEntity, Related related) {
        this.leftProperty = leftProperty;
        this.leftClass = leftEntity;
        this.ops = ops;
        this.related = related;
        this.rightProperty = rightProperty;
        this.rightClass = rightEntity;
    }

    public Condition(String property, MatchType ops, Related related, Class entity, Object matchValue) {
        this.leftProperty = property;
        this.ops = ops;
        this.related = related;
        this.leftClass = entity;
        this.matchValue = matchValue;
    }


    public Object getMatchValue() {
        return matchValue;
    }

    public void setMatchValue(Object matchValue) {
        this.matchValue = matchValue;
    }

    public String getLeftProperty() {
        return leftProperty;
    }

    public void setLeftProperty(String leftProperty) {
        this.leftProperty = leftProperty;
    }

    public MatchType getOps() {
        return ops;
    }

    public void setOps(MatchType ops) {
        this.ops = ops;
    }


    public Related getRelated() {
        return related;
    }

    public void setRelated(Related related) {
        this.related = related;
    }


    public String getRightProperty() {
        return rightProperty;
    }

    public void setRightProperty(String rightProperty) {
        this.rightProperty = rightProperty;
    }


    public Class getLeftClass() {
        return leftClass;
    }

    public void setLeftClass(Class leftClass) {
        this.leftClass = leftClass;
    }

    public Class getRightClass() {
        return rightClass;
    }

    public void setRightClass(Class rightClass) {
        this.rightClass = rightClass;
    }
}



 